﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Inspector.Modules
{
    public partial class Drives : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                dropSelector.DataSource = Environment.GetLogicalDrives();
                dropSelector.DataBind();
            }
        }

        protected void dropSelector_SelectedIndexChanged(object sender, EventArgs e)
        {
            mainGrid.DataSource = InspectorUtils.GetEnvironmentDrives(dropSelector.SelectedValue);
            mainGrid.DataBind();
            //folders.DataSource = InspectorUtils.GetDrivesFolders(dropSelector.SelectedValue.Substring(0, 1)).First().Value;
            //folders.DataBind();
                

        }
    }
}